﻿<%-- 
    Document   : dc_show
    Created on : 2011-12-10, 11:26:59
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>案例地图</title>
        <link rel="shortcut icon" href="${pageContext.request.contextPath}/images/dan.ico"></link>
        <link href="${pageContext.request.contextPath}/css/cont.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.1.min.js"></script>


        <script type="text/javascript">
            $(document).ready(function(){
                $("#cont_title_nav0").click(function(){
                    location.reload();
                    $("#cont_title_nav1").css("border-left","1px solid #F7D394");
                    $("#cont_title_nav1").css("border-right","1px solid #F7D394");
                    $("#cont_title_nav1").css("border-top","1px solid #F7D394");
                    $("#cont_title_nav1").css("background","#FFF4E0");
                    $("#cont_title_nav1").css("height","29px");
                    $("#cont_title_nav1").css("font-weight","bold");
                    $("#cont_title_nav1").css("color","#9F3E13");
                    $("#cont_title_nav0").css("font-weight","200");
                    $("#cont_title_nav0").css("color","#444444");
																	
                    $("#cont_title_nav0").css("border-left","1px solid #D1CDCE");
                    $("#cont_title_nav0").css("border-right","1px solid #D1CDCE");
                    $("#cont_title_nav0").css("border-top","1px solid #D1CDCE");
                    $("#cont_title_nav0").css("background","url(images/cont_title_bg1.jpg) repeat-x");
                    $(".cont_cont_1").css("display","");
                    $(".cont_cont_0").css("display","none");
                });
                $("#cont_title_nav1").click(function(){
                    location.reload();
                    $("#cont_title_nav1").css("border-left","1px solid #F7D394");
                    $("#cont_title_nav1").css("border-right","1px solid #F7D394");
                    $("#cont_title_nav1").css("border-top","1px solid #F7D394");
                    $("#cont_title_nav1").css("background","#FFF4E0");
                    $("#cont_title_nav1").css("height","29px");
                    $("#cont_title_nav1").css("font-weight","bold");
                    $("#cont_title_nav1").css("color","#9F3E13");
                    $("#cont_title_nav0").css("font-weight","200");
                    $("#cont_title_nav0").css("color","#444444");
																	
                    $("#cont_title_nav0").css("border-left","1px solid #D1CDCE");
                    $("#cont_title_nav0").css("border-right","1px solid #D1CDCE");
                    $("#cont_title_nav0").css("border-top","1px solid #D1CDCE");
                    $("#cont_title_nav0").css("background","url(images/cont_title_bg1.jpg) repeat-x");
                    $(".cont_cont_1").css("display","");
                    $(".cont_cont_0").css("display","none");

                });
            });
        </script>


        <script type="text/javascript" src="${pageContext.request.contextPath}/js/swfobject/swfobject.js"></script> 
        <script src="${pageContext.request.contextPath}/js/flash/swfobject_modified.js" type="text/javascript"></script>

        <script type="text/javascript" src="${pageContext.request.contextPath}/js/flexpaper_flash.js"></script>
        <script>

            function test(filename)
            {
                var so = new SWFObject("${pageContext.request.contextPath}/upload/document/"+filename.split(".")[0]+".swf", "mymovie", "200", "100", "7", "#336699"); 
                //将id为flashcontent的DIV中内容替换为FLASH 
                so.write("swfid"); 
            }









            function loadflash(filename)
            {
               
                var swfVersionStr = "9.0.0";
                var xiSwfUrlStr = "${pageContext.request.contextPath}/js/FlexPaperViewer.swf";
                var flashvars = { 
                    //                 SwfFile : escape("${pageContext.request.contextPath}/doc/3.swf"),
                    SwfFile : escape("${pageContext.request.contextPath}/upload/document/"+filename.split(".")[0]+".swf"),
                    Scale : 1.6, 
                    ZoomTransition: "linear",  
                    ZoomTime: "greater",  
                    ZoomInterval: 0.6,  
                    FitPageOnLoad: false,  
                    FitWidthOnLoad: false,  
                    PrintEnabled: true,  
                    FullScreenAsMaxWindow: false,  
                    ProgressiveLoading: false,  
       
                    PrintToolsVisible: true,  
                    ViewModeToolsVisible: true,  
                    ZoomToolsVisible: true,  
                    FullScreenVisible: true,  
                    NavToolsVisible: true,  
                    CursorToolsVisible: true,  
                    SearchToolsVisible: false,  
                    localeChain: "zh_CN"  
                };
                var params = {
					
                }
                params.quality = "high";  
                params.bgcolor = "#ffffff";  
                params.allowscriptaccess = "sameDomain";  
                params.allowfullscreen = "true";  
                var attributes = {};  
                attributes.id = "FlexPaperViewer";  
                attributes.name = "FlexPaperViewer";  
                swfobject.embedSWF(
                "${pageContext.request.contextPath}/js/FlexPaperViewer.swf", "swfid", 
                "1000", "1000", 
                swfVersionStr, xiSwfUrlStr, 
                flashvars, params, attributes);
                swfobject.createCSS("#swfid", "display:block;text-align:center;");
                
                
                
                
            }
            
            function  show(filename,titlename)
            {
              
                //location.reload()  ;
                //test(filename);
               
                document.getElementById("dlFileName").value=filename;
                document.getElementById("cont_title_nav1").style.display=""
                document.getElementById("showlist").style.display="";
                document.getElementById("cont_cont_0").style.display="none";
                document.getElementById("cont_title_nav1").innerHTML=titlename;
                var requiredMajorVersion = 8;
                var requiredMinorVersion = 0;
                var requiredRevision = 0;

                var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
                var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;

                var width=1000
                var height=1000
                var align="center"
                var name="Print2FlashDoc"
                var url="${pageContext.request.contextPath}/upload/document/"+filename+".swf"
                if(isIE && isWin) {  
                    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
                        + 'width="'+width+'" height="'+height+'" align="'+align+'" id="'+name+'"'
                        + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+requiredMajorVersion+','+requiredMinorVersion+','+requiredRevision+',0">'
                        + '<param name="movie" value="'+url+'" /><param name="quality" value="best" />'
                        + '<param name="allowScriptAccess" value="sameDomain" />'
                        + '<\/object>';
                    $("#falseid").html(oeTags);   
                } else if(DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision)) {
                    var oeTags = '<embed src="'+url+'" quality="best" '
                        + 'width="'+width+'" height="'+height+'" align="'+align+'" name="'+name+'"'
                        + 'play="true"'
                        + 'loop="false"'
                        + 'quality="best"'
                        + 'allowScriptAccess="sameDomain"'
                        + 'type="application/x-shockwave-flash"'
                        + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
                        + '<\/embed>'
                    $("#falseid").html(oeTags);    
                } else {
                    var alternateContent = 'This content requires the Adobe Flash Player. '
                        + '<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>';
                    $("#falseid").html(alternateContent);   
                }
            }
            function down()
            {
                var dfilename=document.getElementById("dlFileName").value;
                
            }
            
            
            
        </script>
        <script language="JavaScript" type="text/javascript">
            var requiredMajorVersion = 8;
            var requiredMinorVersion = 0;
            var requiredRevision = 0;

            var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
            var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
            function palyf(filename)
            {
                var width=1000
                var height=1000
                var align="center"
                var name="Print2FlashDoc"
                var url="${pageContext.request.contextPath}/upload/document/"+filename+".swf"
                if(isIE && isWin) {  
                    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
                        + 'width="'+width+'" height="'+height+'" align="'+align+'" id="'+name+'"'
                        + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+requiredMajorVersion+','+requiredMinorVersion+','+requiredRevision+',0">'
                        + '<param name="movie" value="'+url+'" /><param name="quality" value="best" />'
                        + '<param name="allowScriptAccess" value="sameDomain" />'
                        + '<\/object>';
                    $("#falseid").html(oeTags);   
                } else if(DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision)) {
                    var oeTags = '<embed src="'+url+'" quality="best" '
                        + 'width="'+width+'" height="'+height+'" align="'+align+'" name="'+name+'"'
                        + 'play="true"'
                        + 'loop="false"'
                        + 'quality="best"'
                        + 'allowScriptAccess="sameDomain"'
                        + 'type="application/x-shockwave-flash"'
                        + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
                        + '<\/embed>'
                    $("#falseid").html(oeTags);    
                } else {
                    var alternateContent = 'This content requires the Adobe Flash Player. '
                        + '<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>';
                    $("#falseid").html(alternateContent);   
                }
            }

 
        </script>
    </head>
    <body>
        <div class="page">

            <!--网站头部开始-->
            <div class="top">
                <div class="top_top">
                    <ul>
                        <li class="top_top_li1"><span>您好！欢迎来到单证大全网</span><a href="#" class="top_top_a1">请登录</a><a href="#">注册</a></li>
                        <li class="top_top_li2"><a href="#">会员服务</a> | <a href="#">用户留言</a> | <a href="#">联系我们</a> </li>
                    </ul>
                </div>
                <div class="top_logo"><span><img src="${pageContext.request.contextPath}/images/top_logo.jpg"/></span> </div>
                <!-- <div class="top_link">
                   <ul>
             
                     <li><a href="${pageContext.request.contextPath}/knowledge/findlist.action" class="top_link_a1">业务案例</a></li>
                   </ul>
                 </div>-->
            </div>



            <!--首页开始-->

            <!--   <div class="lb_select_huitui">首页 &gt;&gt; 产品目录 &gt;&gt; 工业设备及组件 &gt;&gt; 净化过滤和水处理设备 &gt;&gt; 过滤机，过滤器</div>-->
            <div class="lb_cont">
                <div class="cont_title">
                    <ul>
                        <li id="cont_title_nav0">案例地图</li>
                        <!--                        <div id="xq" style="display:none">-->

                        <li id="cont_title_nav1" style="display:none">单证详情</li>


                    </ul>
                </div>
                <div class="cont_cont">
                    <div class="cont_cont_0" id="cont_cont_0" > 
                        <table width="100%" height="100%" border="0"  align="center" cellpadding="2" cellspacing="1" style="background:#AACDF1">          
                            <tr>
                                <td width="15%" bgcolor="#DBE8F7" style=" text-align:left; vertical-align:top">案例编号</td>
                                <td width="35%" bgcolor="#ffffff" style=" text-align:left; vertical-align:top"><s:property value="ca.code"/></td>
                                <td width="15%" bgcolor="#DBE8F7" style=" text-align:left; vertical-align:top">案例名称</td>
                                <td width="35%" style=" text-align:left; vertical-align:top" bgcolor="#ffffff"><s:property value="ca.name"/></td>
                            </tr>
                            <tr>
                                <td bgcolor="#DBE8F7"  style=" text-align:left; vertical-align:top">采购国</td>
                                <td  style=" text-align:left; vertical-align:top" bgcolor="#ffffff"><s:property value="ca.countryName"/></td>

                                <td bgcolor="#DBE8F7"  style=" text-align:left; vertical-align:top">产品</td>
                                <td  style=" text-align:left; vertical-align:top" bgcolor="#ffffff"><s:property value="ca.productName"/></td>
                            </tr>               
                            <tr>
                                <td bgcolor="#DBE8F7"  style=" text-align:left; vertical-align:top">案例概述</td>
                                <td colspan="3"  style=" text-align:left; vertical-align:top" bgcolor="#ffffff"><s:property value="ca.fillSummy" escape="false"/></td>
                            </tr>

                        </table>
                        <br>
                        <table width="100%" border="0" align="center" cellpadding="0"
                               cellspacing="1" style="background:#AACDF1">
                            <tr>
                                <th height="22" colspan="7" align="left" style="padding-left:10px; background:#DBE8F7">
                                    <strong> 单证清单</strong>                         </th>
                            </tr>
                            <tr>

                                <!--                                <th width="12%" height="22" style="text-align:center; background:url(../images/title_bg.jpg);color:#104172">
                                                                    所属单证格式编号                                </th>
                                                                <th  width="13%" style="text-align:center; background:url(../images/title_bg.jpg);color:#104172">
                                                                    所属单证格式名称                                </th>-->
                                <th  width="15%"  style="text-align:center; background:url(../images/title_bg.jpg);color:#104172">
                                    本单证名称                                  </th>
                                <th width="79%"  style="text-align:center; background:url(../images/title_bg.jpg);color:#104172">
                                    案例要点和解析                              </th>
                                <th width="6%"  style="text-align:center; background:url(../images/title_bg.jpg);color:#104172">
                                    进入                               </th>      
                            </tr>
                            <s:iterator value="casefillpointsList" var="dc" status="stat">
                                <tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='#e3f0f7'"
                                    onMouseOut="this.bgColor='#FFFFFF'">

                                    <!--                                    <td style=" text-align:left; vertical-align:top">
                                    ${documentCode}                                    </td>
                                <td style=" text-align:left; vertical-align:top">
                                    ${documentName}                                    </td>                    -->
                                    <td  style=" text-align:left; vertical-align:top" >
                                        ${name}                                    </td>



                                    <td  style=" text-align:left; vertical-align:top">
                                        ${points}                                    </td>

                                    <td style=" text-align:left; vertical-align:top">
                                        <img src="../images/danzheng_xiangqing.jpg" onClick="show('${casepoint}','${name}')" style="cursor:hand"/>
                                    </td>      
                                </tr>
                            </s:iterator>
                        </table>    

                    </div>


                    <div class="cont_cont_1" style="display:none" id="showlist">    
                        <table>
                            <s:hidden id="dlFileName" name="dlFileName"></s:hidden>

                                <tr><td>  <div id="falseid"></div></td> </tr>    

                            </table>          
                        </div>

                    </div> <s:include value="/bottom.jsp"/>

            </div> 
        </div>
        <!--首页结束-->


    </div>
</body>
</html>
